//
//  NowShowDetailViewController.m
//  代号：47
//
//  Created by lanou3g on 15/7/1.
//  Copyright (c) 2015年 杨佩璋. All rights reserved.
//

#import "NowShowDetailViewController.h"

@interface NowShowDetailViewController ()<UIWebViewDelegate>

@end

@implementation NowShowDetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    
//    self.navigationItem.leftItemsSupplementBackButton = YES;
    
    
    
    NSString *str = [NSString stringWithFormat:@"http://movie.douban.com/subject/%ld/mobile",_moiveID];
    UIWebView *webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, kScreen_width, kScreen_height)];
//    webView.backgroundColor = [UIColor yellowColor];
    [self.view addSubview:webView];
    NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:str]];
    [webView loadRequest:request];
    webView.delegate = self;
    
    // Do any additional setup after loading the view.
}

#pragma mark -------实现webView的代理方法
//- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType{

//    NSString *str = [NSString stringWithFormat:@"%@",request];
//    
//    if ([str hasSuffix:@".mp4"]) {
//        return  NO;
//    }else{
//        return YES;
//    }
    
//}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
